eclipse template autoformat [closed]

Posted by Matiaan on Server Fault See other posts from Server Fault or by Matiaan
Published on 2012-11-22T10:06:36Z Indexed on 2012/11/22 11:04 UTC
Read the original article Hit count: 299

Filed under:
|
|

I have a template (sleep) in eclipse that should expand to

try { Thread.sleep(1000); } catch (Exception e) {}

I want eclipse to add it as one line, just as I put it in the template. However, eclipse autoformats it after inserting to:

try {
  Thread.sleep(1000);
} catch (Exception e) {
}

Is there any way to disable formatting just for this one template (or all templates since all templates I use are one liners)?

© Server Fault or respective owner

Related posts about eclipse

Related posts about format